using AnyCAD.CAM.View;
using AnyCAD.NX.ViewModel;
using AnyCAD.NX.Plugin;
using System;

namespace AnyCAD.CAM
{
    /// <summary>
    /// 标准方向枚举值
    /// </summary>
    public enum EnumStandardVectorDirection
    {
        XP,
        XN,
        YP,
        YN,
        ZP,
        ZN,
        UserDefined,
    }

    
    /// <summary>
    /// 插件入口
    /// </summary>
    internal class CAMPlugin : IPlugin
    {
        public string Name { get => "AnyCAD.CAM.Plugin"; }
        public string Description { get => "AnyCAD.CAM.Plugin"; }

        public void Destroy()
        {

        }

        public bool Startup(MainViewModel mainViewModel)
        {
            var vm = mainViewModel as MainRibbonViewModel;
            if (vm == null)
                return false;
            var ribbon = vm.GetRibbonBar();
            ribbon.Tabs.Add(new CAMRibbonTab(mainViewModel));
            return true;
        }
    }
}
